package com.douqu.game.core.entity;

import com.bean.core.buffer.ByteBuffer;

/**
 * Created by bean on 2017/9/27.
 */
public class ArenaRank {

    private int rank;
    private  String objectIndex;


    public void loadFrom(ByteBuffer buffer)
    {
        rank = buffer.readShort();
        objectIndex = buffer.readShortString();
    }

    public void writeTo(ByteBuffer buffer)
    {
        buffer.writeShort(rank);
        buffer.writeShortString(objectIndex);
        buffer.writeInt(0);
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public String getObjectIndex() {
        return objectIndex;
    }

    public void setObjectIndex(String objectIndex) {
        this.objectIndex = objectIndex;
    }
}
